Use MIN instead of MAX to avoid reading more than fits into the buffer.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 31 Aug 2005 08:43:31 +0000 (08:43 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 31 Aug 2005 08:43:31 +0000 (08:43 +0000)
commit632192e7a9e8dc3f1c05a81dea2472880e97dce5
treebec5aea316ca43c278ec82e83fb79983cdc445e4
parent4955f329c8ea7bd2b4370a328e5f921e64414e86
Use MIN instead of MAX to avoid reading more than fits into the buffer.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/console/daemon/io.c